package com.yonyou.crm.common.enumeration.rmimpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yonyou.crm.common.enumeration.entity.EnumVO;
import com.yonyou.crm.common.enumeration.rmitf.IEnumRmService;
import com.yonyou.crm.common.enumeration.service.EnumBizServiceImpl;

@Service("enumService")
public class EnumRmServiceImpl implements IEnumRmService {

	@Autowired
	private EnumBizServiceImpl bizService;
	
	public List<Map<String, Object>> getEnumByCode(String code) {
		return bizService.getEnumByCode(code);
	}
	
	public Map<String, List<EnumVO>> getEnumByCodes(String[] codes) {
		return bizService.getEnumByCodes(codes);
	}
	
	public Object getEnumByValue(String code, Integer value) {
		return bizService.getEnumByValue(code, value);
	}
	
	public List<Map<String, Object>> selectFieldsByIds(String code, Object[] values) {
		return bizService.selectFieldsByIds(code, values);
	}
	
}
